package team.lourd.network.system.own.domain.netel;

import lombok.Getter;
import lombok.Setter;
import team.lourd.network.system.own.domain.Detail;
import team.lourd.network.system.own.domain.Operation;
import team.lourd.network.system.own.domain.Record;
import team.lourd.network.system.own.domain.pretrem.PMModel;

import javax.persistence.*;
import java.util.List;


/**
 * @Description: 网元流程图的信息
 * @Author: Lourd
 * @Date: 2019/1/18
 */
@Entity
@Table(name = "ne_diagram")
@Getter
@Setter
public class NEDiagram extends Detail {

    private String type;

    @OneToMany(mappedBy = "neDiagram", cascade = CascadeType.ALL)
    private List<Operation> operations;

    @OneToMany(mappedBy = "neDiagram", cascade = CascadeType.ALL)
    private List<Record> records;

    @OneToOne
    private NEBranch neBranch;

    @ManyToMany(mappedBy ="neDiagrams",cascade = CascadeType.ALL)
    private List<PMModel> pmModels;

    private String nEFlowChartId;

}
